package com.pubinfo.passbook.common.model.dto.system;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author zhouch
 * @date 2021/11/8 16:28
 */
@Data
@NoArgsConstructor
@ApiModel(value = "OrgTreePersonListParam", description = "根据用户ID查询同部门下所有用户请求参数")
public class OrgTreeColleagueListParam extends PageParamBase {
  
  @ApiModelProperty(value = "用户ID")
  @NotNull(message = "用户ID不能为空")
  @Min(value = 0, message = "用户ID必须有效")
  private Long acctId;
  
  @ApiModelProperty(value = "组织ID, 可以为空, 默认查询该用户关联所有组织下的人员")
  @Min(value = 1, message = "组织ID必须有效")
  private Long orgId;
  
  @ApiModelProperty(value = "真实姓名/身份证号码")
  private String realname;
}
